<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Kindle 时钟</title>
    <style>
        body {
            background-color: black;
            color: white;
            font-family: Arial, sans-serif;
            font-weight: bold;
            text-align: center;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            flex-direction: column;
        }
        #clock {
            font-size: 3em;
        }
        #date {
            font-size: 2em;
        }
        #lunar {
            font-size: 1.5em;
        }
    </style>
</head>
<body>
    <div id="clock">00:00:00</div>
    <div id="date">2023年10月1日</div>
    <div id="lunar">农历八月初一</div>

    <script>
        function updateClock() {
            const now = new Date();
            const clock = document.getElementById('clock');
            const date = document.getElementById('date');
            const lunar = document.getElementById('lunar');

            // 更新时钟
            const hours = String(now.getHours()).padStart(2, '0');
            const minutes = String(now.getMinutes()).padStart(2, '0');
            const seconds = String(now.getSeconds()).padStart(2, '0');
            clock.textContent = `${hours}:${minutes}:${seconds}`;

            // 更新公历日期
            const year = now.getFullYear();
            const month = String(now.getMonth() + 1).padStart(2, '0');
            const day = String(now.getDate()).padStart(2, '0');
            date.textContent = `${year}年${month}月${day}日`;

            // 更新农历日期（需要外部库或手动计算）
            // 这里只是一个占位符，实际需要调用农历计算函数
            lunar.textContent = '农历八月初一';
        }

        // 每60秒刷新页面
        setTimeout(() => {
            location.reload();
        }, 60000);

        // 初始加载时更新时钟
        updateClock();
        setInterval(updateClock, 1000);
    </script>
</body>
</html>